#!/bin/bash
set -e
set -x
echo "############## Begin to execute job:build ##############"
#<================ user modify(please modify content of script)
version_num=`echo $CI_COMMIT_TAG | cut -d '-' -f 2`

export GO111MODULE=on
export GOPROXY="https://goproxy.cn"
export GOPRIVATE=*.yealink.com

go build -o thomas-mesh ./cmd/agent/thomas-mesh.go
mkdir -p $TGZ_PACKAGE_PATH_LINUX/thomas-mesh
cp thomas-mesh $TGZ_PACKAGE_PATH_LINUX/thomas-mesh

echo "############## End to execute job:build ##############"

